#set($title = "修改密码")
#parse("/home/_header.html")
<div id=nav>
    <a href="/">$domain.domain</a>
    &raquo;&nbsp; $title
</div>
<form id="form" name="form" method="post" action="/changePwd">
	<input type="hidden" name="_method" value="put">
	<div class="mainbox formbox">
<table cellspacing="0" cellpadding="0">
  <thead>
  <tr>
    <td>请修改密码</td>
    <td>&nbsp;</td></tr></thead>
  <tbody>
  <tr>
    <td>用户名</td>
    <td>$user.userid</td></tr>
    <tr>
    <td class="altbg1"><span class="bold">新密码</span></td>
    <td class="altbg2"><input type="password" size="25" name="pwd1" id="pwd1">
	<input type="hidden" value="$user.pwd" size="25" name="oldpwd">
	</td></tr>
  <tr>
    <td class="altbg1"><span class="bold">确认新密码</span></td>
    <td class="altbg2"><input type="password" size="25" name="pwd2" input type="pwd2" id="pwd2"></td></tr>
  <tr>
	 <tr>
    <td>&nbsp;</td>
    <td height="30"><input class="submit" tabindex="100" name="findsubmit"id="submit" type="submit" value="提交"/></td></tr></tbody></table>
	</div>
	</form>
	<script type="text/javascript">
		$(function(){
			$("#form").attr("action",window.location.href);
			$("#submit").click(function(){
				$("#pwd1").val($("#pwd1").val().replace(/\s+/g,""));
				if($("#pwd1").val()==null||$("#pwd1").val()==""){
					alert("请输入密码！");
					return false;
				}else{
					if($("#pwd1").val()!=$("#pwd2").val()){
						alert("请输入相同的密码！");
					    return false;
					}
					var length=$("#pwd1").val().length;
					if(length<6||length>20){
						alert("密码长度为6——20!");
						return false;
					}
				}
			});
		});
	
	</script>